﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpCop.Core
{
    //internal class ElevationVisitor : BinaryReadOnlyVisitor
    //{
    //    internal bool UsesRunWithElevatedPrivileges { get; set; }

    //    public override void VisitMethodCall(MethodCall call)
    //    {

    //        var member = call.Callee as MemberBinding;
    //        if(member != null)
    //        {
    //          if (member.BoundMember.DeclaringType.Name.Name == "SPSecurity" && member.BoundMember.Name.Name == "RunWithElevatedPrivileges")
    //          {
    //              UsesRunWithElevatedPrivileges = true;
    //          }
    //        }

    //        base.VisitMethodCall(call);
    //    }

       
    //}
}
